﻿using System;
using System.Net;
using SMS.Entities.BaseClasses;

namespace SMS.Entities
{
    public class ExceptionLog : BaseEntity
    {
        private int _ID;

        public int ID
        {
            get { return _ID; }
            set { _ID = value; OnPropertyChanged("ID"); }
        }

        private string _UserName;

        public string UserName
        {
            get { return _UserName; }
            set { _UserName = value; OnPropertyChanged("UserName"); }
        }

        public string DateString
        {
            get { return LogTime.ToShortDateString(); }
            set { }
        }

        public string TimeString
        {
            get { return LogTime.ToShortTimeString(); }
            set { }
        }

        private DateTime _LogTime;

        public DateTime LogTime
        {
            get { return _LogTime; }
            set { _LogTime = value; OnPropertyChanged("LogTime"); }
        }


        private string _Error;

        public string Error
        {
            get { return _Error; }
            set { _Error = value; OnPropertyChanged("Error"); }
        }

        private string _ErrorDescription;

        public string ErrorDescription
        {
            get { return _ErrorDescription; }
            set { _ErrorDescription = value; OnPropertyChanged("ErrorDescription"); }
        }
    }
}
